package com.p2p.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Api(value = "投资记录")
public class InvestmentRecord {
    @ApiModelProperty(name = "id",notes = "id",dataType = "Long",required = false)
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    @ApiModelProperty(name = "loanId",notes = "借贷单id",dataType = "Long",required = false)
    private Long loanId;
    @ApiModelProperty(name = "fundsId",notes = "资金表id",dataType = "Long",required = false)
    private Long fundsId;
    @ApiModelProperty(name = "investmentRecordNum",notes = "投资记录编号",dataType = "String",required = false)
    private String investmentRecordNum;
    @ApiModelProperty(name = "investmentChannel",notes = "投资渠道",dataType = "String",required = false)
    private String investmentChannel;
    @ApiModelProperty(name = "investmentType",notes = "投资类型（投资状态（0待回款，1已结算，2撤标，3流标，4投资中，5投资失败））",dataType = "Byte",required = false)
    private Byte investmentType;
    @ApiModelProperty(name = "createTime",notes = "创建时间",dataType = "Timestamp",required = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;
    @ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "Timestamp",required = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;
    @ApiModelProperty(name = "isDeleted",notes = "是否删除",dataType = "Byte",required = false)
    @TableLogic
    private Byte isDeleted;

}
